package com.py.unit.service;

import java.util.List;

import com.py.unit.domain.PyAccount;
import com.py.unit.domain.PySuppliers;
import org.springframework.transaction.annotation.Transactional;

/**
 * 供应商信息Service接口
 * 
 * @author ruoyi
 * @date 2024-11-20
 */
public interface IPySuppliersService 
{
    /**
     * 查询供应商信息
     * 
     * @param supplierId 供应商信息主键
     * @return 供应商信息
     */
    public PySuppliers selectPySuppliersBySupplierId(Long supplierId);

    /**
     * 查询供应商信息列表
     * 
     * @param pySuppliers 供应商信息
     * @return 供应商信息集合
     */
    public List<PySuppliers> selectPySuppliersList(PySuppliers pySuppliers);

    /**
     * 新增供应商信息
     * 
     * @param pySuppliers 供应商信息
     * @return 结果
     */
    @Transactional
    int insertPySuppliers(PySuppliers pySuppliers, PyAccount pyAccount);

    /**
     * 修改供应商信息
     * 
     * @param pySuppliers 供应商信息
     * @return 结果
     */
    public int updatePySuppliers(PySuppliers pySuppliers);

    /**
     * 批量删除供应商信息
     * 
     * @param supplierIds 需要删除的供应商信息主键集合
     * @return 结果
     */
    public int deletePySuppliersBySupplierIds(Long[] supplierIds);

    /**
     * 删除供应商信息信息
     * 
     * @param supplierId 供应商信息主键
     * @return 结果
     */
    public int deletePySuppliersBySupplierId(Long supplierId);

    public int insSupAcc(PySuppliers pySuppliers);

    List<PySuppliers> selectAll();

    int delPuuAccList(Integer[] supplierIds);

}
